
ARCH := $(NDK_PATH)/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/arm-linux-androideabi-
CXX := $(ARCH)g++
CC := $(ARCH)gcc
AR := $(ARCH)ar
LD := $(ARCH)gcc

#arm cpu
CFLAGS += -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -fpic -fpie -fPIE 


CFLAGS += -isystem "$(NDK_PATH)/platforms/android-21/arch-arm/usr/include"\
    -isystem "$(NDK_PATH)/sources/cxx-stl/stlport/stlport"\
    -isystem "$(NDK_PATH)/sources/cxx-stl/system/include"
    
LDFLAGS += -ldl -lstlport_static
   
LDFLAGS += -L"$(NDK_PATH)/platforms/android-14/arch-arm/usr/lib"\
	-L"$(NDK_PATH)/platforms/android-15/arch-arm/usr/lib"\
	-L"$(NDK_PATH)/platforms/android-15/arch-arm/usr/lib"\
	--sysroot="$(NDK_PATH)/platforms/android-15/arch-arm"\
    -L"$(NDK_PATH)/sources/cxx-stl/stlport/libs/armeabi-v7a/thumb" \
	-fpie -fPIE \
    -no-canonical-prefixes -march=armv7-a -Wl,--fix-cortex-a8  -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -lc -lm -lz
    
    
